//
//  NSString+Format.h
//  YanXiuWang
//
//  Created by 招利 李 on 16/11/23.
//  Copyright © 2016年 小分队. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NSArray+Log.h"

FOUNDATION_EXPORT void print(NSString * format, ...) NS_FORMAT_FUNCTION(1,2);


FOUNDATION_EXPORT NSURL * FormatURL(NSString * format, ...) NS_FORMAT_FUNCTION(1,2);

FOUNDATION_EXPORT NSString * Format(NSString * format, ...) NS_FORMAT_FUNCTION(1,2);
FOUNDATION_EXPORT NSString * FormatDate(NSString * format, NSDate *date) NS_FORMAT_FUNCTION(1,0);
FOUNDATION_EXPORT NSString * FormatTimestamp(NSString * format, NSTimeInterval timestamp) NS_FORMAT_FUNCTION(1,0);


@interface NSString (Easy)

+ (instancetype)stringWithData:(NSData *)data encoding:(NSStringEncoding)encode;

@end

@interface NSNumber (Equal)

- (NSInteger)length;

- (BOOL) isEqualToString:(NSString *)value;

@end
